package com.ea.common.handler;

import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.connector.ClientAbortException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ControllerAdvice
@Slf4j
public class BaseExceptionHandler {
    @ExceptionHandler(ClientAbortException.class)
    public void resolveException(ClientAbortException e) {
        log.info("远程主机关闭连接，无需处理");
    }
}
